package com.cdtu.outtake.controller.vo;

import com.cdtu.outtake.util.CustomGenderDeserializer;
import com.cdtu.outtake.domain.enums.Gender;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * @Author : shl
 * @Date 2024/4/6 12:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddressVO {
    private String name;
    @Enumerated(EnumType.ORDINAL)
    @JsonDeserialize(using = CustomGenderDeserializer.class)
    private Gender gender;
    private Long phone;
    private String ad;
}
